package cn.bonoon.core;

import java.util.List;

import org.batatasframework.rawdata.RawdataDefinition;
import org.batatasframework.rawdata.RawdataImportResult;
import org.batatasframework.rawdata.RawdataImportedResult;
import org.batatasframework.web.RequestParameterReader;

import cn.bonoon.entities.PlaceLevel;
import cn.bonoon.entities.RawdataExportEntity;
import cn.bonoon.kernel.support.IOperator;

public interface RawdataStreamService {

	RawdataImportResult executeUpload(IOperator user, String catalog, RequestParameterReader parameter)throws Exception;

	List<RawdataItem> myItems(IOperator user, String catalog);

	/**
	 * 
	 * @param items
	 * @param key 开头第一个英文字母，例如RD001的开头是R
	 * @param level 
	 * @return
	 */
	List<RawdataItem> chooseItems(List<RawdataItem> items, PlaceLevel level,String key,Long ownerId);
	
	RawdataImportedResult importResult(IOperator user, String catalog, RawdataImportResult data);

	RawdataDefinition getDefinition(IOperator user, String catalog, String key);

	void export(IOperator user, RawdataExportEntity entity);

	RawdataImportedResult getDoubtBy(IOperator user, String catalog, String key,Long id,String[] ids);

	RawdataImportResult executeUpload2(IOperator user, String catalog, RequestParameterReader parameter,Long projectId)throws Exception;



}
